package org.example.pet;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@MapperScan("org.example.pet.mapper") // 扫描Mapper接口
@ServletComponentScan
@EnableTransactionManagement
@EnableScheduling // 开启任务调度
public class PetApplication {
    public static void main(String[] args) {
        SpringApplication.run(PetApplication.class,args);
        log.info("项目已启动");
    }
}
